package com.td.core.communication.obj;

import com.td.core.communication.Sendable;

public class GameStateInfo implements Sendable<GameStateInfo>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public enum STATE {BUILDING, ACTION};
	
	private STATE currentState;
	private int currentLevel;

	public STATE getCurrentState() {
		return currentState;
	}

	public void setCurrentState(STATE currentState) {
		this.currentState = currentState;
	}

	public int getCurrentLevel() {
		return currentLevel;
	}

	public void setCurrentLevel(int currentLevel) {
		this.currentLevel = currentLevel;
	}

	@Override
	public void copyTo(GameStateInfo obj) {
		
		obj.currentState = this.currentState;
		obj.currentLevel = this.currentLevel;
		
	}

	@Override
	public GameStateInfo getCopy() {
		GameStateInfo gsi = new GameStateInfo();
		gsi.setCurrentState(getCurrentState());
		gsi.setCurrentLevel(getCurrentLevel());
		return gsi;
	}
	
	
	
	
	
}
